#ifndef _MIDI_PP_H_
#define _MIDI_PP_H_

#include "../contrib/libsmf/smf.h"

#define CONTACT_PERIOD 0.001//s

typedef struct B3_event_struct {
	// libsmf compatible fields
	double time_seconds;
	unsigned char type;//0:note off; 1:note on; 0xFF:end
	unsigned char track;
	unsigned char velocity;
	unsigned char note;
	// for note on/off fields
	unsigned char contact;//from 1 to DRAWBAR_NUM
} B3_event_t;

B3_event_t* midi_preprocess(smf_t *smf);
#endif//_MIDI_PP_H_
